﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/Manage.Master" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="web.Manage.Cash_coupon.edit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="/scripts/DoCallback.min.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_PageInfo" runat="server">
    添加礼品卡
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder_Menus" runat="server">
    <li><a href="default.aspx">查看现有礼品卡</a></li>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder_Content" runat="server">

    <fieldset style="width: 400px; margin: 100px auto; float: none;">
        <legend>添加礼品卡</legend>
        <form id="Form1" runat="server">
            <table class="frm_tab">
                <tr>
                    <td class="right">面额：</td>
                    <td>
                        <asp:TextBox ID="txtPrice" runat="server" Width="50px"></asp:TextBox></td>
                    <td class="right">数量：</td>
                    <td>
                        <asp:DropDownList ID="drpCounts" runat="server">
                            <asp:ListItem>1</asp:ListItem>
                            <asp:ListItem>2</asp:ListItem>
                            <asp:ListItem>3</asp:ListItem>
                            <asp:ListItem>4</asp:ListItem>
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>6</asp:ListItem>
                            <asp:ListItem>7</asp:ListItem>
                            <asp:ListItem>8</asp:ListItem>
                            <asp:ListItem>9</asp:ListItem>
                            <asp:ListItem>10</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        &nbsp;&nbsp;&nbsp;&nbsp;<input type="button" style="width:80px;" value="创建" />
                    </td>
                </tr>
            </table>
        </form>
    </fieldset>
    <script type="text/jscript">
        $(".frm_tab input[type='button']").click(function () {
            if ($(".frm_tab td input[type='text']").val() == "") {
                alert("请输入面额！");
                return false;
            }
            $(this).attr("disabled", true).val("处理中...");
            $.DoCallback({
                arg: $(".frm_tab td input[type='text']").val() + "," + $(".frm_tab td select").val(),
                complete: function (data) {
                    alert(data);
                    $(".frm_tab input[type='button']").removeAttr("disabled").val("创建");
                }
            });
        });
    </script>

</asp:Content>
